﻿<Serializable()> _
Public Class Usuario

    Private _id As Nullable(Of Long)
    Public Overridable Property Id() As Nullable(Of Long)
        Get
            Return _id
        End Get
        Set(ByVal value As Nullable(Of Long))
            _id = value
        End Set
    End Property

    Private _login As String
    Public Overridable Property Login() As String
        Get
            Return _login
        End Get
        Set(ByVal value As String)
            _login = value
        End Set
    End Property

    Private _habilitado As Boolean
    Public Overridable Property Habilitado() As Boolean
        Get
            Return _habilitado
        End Get
        Set(ByVal value As Boolean)
            _habilitado = value
        End Set
    End Property

    Private _pessoa As Pessoa
    Public Overridable Property Pessoa() As Pessoa
        Get
            Return _pessoa
        End Get
        Set(ByVal value As Pessoa)
            _pessoa = value
        End Set
    End Property


    Private _ultimoLogin As Nullable(Of DateTime)
    Public Overridable Property UltimoLogin() As Nullable(Of DateTime)
        Get
            Return _ultimoLogin
        End Get
        Set(ByVal value As Nullable(Of DateTime))
            _ultimoLogin = value
        End Set
    End Property

    Private _papeis As IList(Of Papel)
    Public Overridable Property Papeis() As IList(Of Papel)
        Get
            Return _papeis
        End Get
        Set(ByVal value As IList(Of Papel))
            _papeis = value
        End Set
    End Property

End Class
